
#基本请求
# import requests

# r = requests.get('http://httpbin.org/get')
# print(r.text)


#传入参数请求
import requests

data = {
    'name' : 'calvinhaynes',
    'age' : 19
}

r = requests.get("http://httpbin.org/get",params=data)
# print(r.text)
print(type(r.text))
print(r.json())
print(type(r.json()))